import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import classNames from 'classnames';
import styles from './Button.module.scss';
import Loading from '@/components/Loading';

// console.log(styles);

class Button extends Component {
  constructor (props) {
    super(props);
  }
  fnClick () {
    Loading.show();
    setTimeout(() => {
      Loading.hide();
    }, 2000)
  }
  componentDidCatch (e) {
    console.error(e);
  }
  render() {
    let classes = classNames({
      normal: true
    });
    return (
      <div>
        <button onClick={this.fnClick.bind(this)} className={styles[classes]}>button
        </button>
      </div>
    );
  }

}

export default Button;
